<template>
  <router-view></router-view>
</template>

<script setup>
import {onMounted} from "vue";
import {getUnread, getUnreadMessage} from "@/api/OA/Approve"
import {senMessage} from "@/lib/utils"

let user
onMounted(()=>{
  user = JSON.parse(localStorage.getItem('syhyDocManSys'))
  LoginNotice()
})
const LoginNotice = async () => {
  try {
    const {data:res} = await getUnreadMessage({
      userId:user.id
    })
    if (res.data){
      // senMessage('您有未读消息待查看')
    }
  } catch (e) {
    console.log(e)
  }
}
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  position: relative;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100%;
}
</style>
